From b7c853b0bac7ea75657223d8782473a7e105d47c Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Thu, 2 Mar 2006 21:37:14 +0100 Subject: [PATCH] Don't compile HVM_DBG_LOG into xen by default. Signed-off-by: Xin Li Signed-off-by: Jun Nakajima --- xen/arch/x86/hvm/vioapic.c | 4 ++-- xen/include/asm-x86/hvm/support.h | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/hvm/vioapic.c b/xen/arch/x86/hvm/vioapic.c index 7bf2728f0d..33c1ed1fdf 100644 --- a/xen/arch/x86/hvm/vioapic.c +++ b/xen/arch/x86/hvm/vioapic.c @@ -56,8 +56,8 @@ static void ioapic_dump_redir(hvm_vioapic_t *s, uint8_t entry) { RedirStatus redir = s->redirtbl[entry]; - HVM_DBG_LOG(DBG_LEVEL_IOAPIC, "ioapic_dump_redir " - "entry %x vector %x deliver_mod %x destmode %x delivestatus %x " + printk("ioapic_dump_redir entry %x vector %x " + "deliver_mod %x destmode %x delivestatus %x " "polarity %x remote_irr %x trigmod %x mask %x dest_id %x\n", entry, redir.RedirForm.vector, redir.RedirForm.deliver_mode, redir.RedirForm.destmode, redir.RedirForm.delivestatus, diff --git a/xen/include/asm-x86/hvm/support.h b/xen/include/asm-x86/hvm/support.h index 8c4d6df69a..d8fe3b77b8 100644 --- a/xen/include/asm-x86/hvm/support.h +++ b/xen/include/asm-x86/hvm/support.h @@ -26,7 +26,11 @@ #include #include +#ifndef NDEBUG #define HVM_DEBUG 1 +#else +#define HVM_DEBUG 0 +#endif #define HVM_DOMAIN(v) ((v)->arch.guest_context.flags & VGCF_HVM_GUEST) -- 2.30.2